﻿ <%@page contentType="text/html; charset=utf-8" language="java" import="cn.ac.cintcm.synonymous.*"  errorPage="" %>
<%@page import="java.util.List, java.util.Date" %>

<%
String w = Util.getUrlParameter(Util.unescape(request.getQueryString()),"w");
String start2 = request.getParameter("p");
DataSource ds = CSVDataSource.createDataSource(Config.getDataSourceFile());
Dictionary dict = CSVDictionary.getInstance(Config.getDictFile());
Job job = Job.getJobInstance(ds, dict);
WordEditCtl editCtl = WordEditCtl.getInstance(ds, job, dict);
List sourcelist = null;
String urls = "moredata.jsp?w="; 
String sourceNavigation = ""; 
DataSourceCtl dctl2  = new DataSourceCtl((PagedData) new SelectedDataSource(editCtl.getSource(w)));
if (start2==null) {
    start2 = "1";
}
sourcelist = dctl2.getData(start2);
sourceNavigation = dctl2.getNavigation(urls, start2);

%>
<html>
<head>
  <meta content="text/html; charset=utf-8" http-equiv="content-type">
  <title>正异名修正_更多词</title>
  <script language="javascript">
  	function navigation(page) {
			window.location.href = "<%=urls%>" + escape('<%=w%>') + "&p="+page;
   } 

  </script>
</head>
<body >
<table style="text-align: left; width: 100%;" border="1"
 cellpadding="2" cellspacing="2">
  <tbody>
    <tr>

<%if (sourcelist != null) {%>
      <td>
      <table style="text-align: left; width: 100%;" border="1"
 cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
            <td colspan="3" rowspan="1"><%=sourceNavigation%></td>
          </tr>
          <tr>
            <td>序号</td>
            <td>name</td>
            <td>column</td>
          </tr>
<%
  if (sourcelist != null) {
    String[] sourcedata = null;
	  for (int i = 0; i < sourcelist.size(); i++) {
	      sourcedata = (String[]) sourcelist.get(i);
%>
          <tr>
            <td><%=sourcedata[0]%></td>
            <td><%=sourcedata[2]%></td>
            <td><%=sourcedata[1]%></td>
          </tr>
 <%
     }
  }
 %>
        </tbody>
      </table>
      </td>
 <%}%>      
    </tr>
  </tbody>
</table>
<br>
</body>
</html>